{
    class Start extends Sail.Scene {
        constructor () {
            super();

            this.btnStart = null;

            this.init();
        }

        init () {
            let btnStart = new Laya.Box();
                btnStart.size(200, 80);
                btnStart.on(Laya.Event.CLICK, this, this.onStart);
                btnStart.centerX = 0;
                btnStart.centerY = 0;

            let bg = new Laya.Label();
                bg.size(btnStart.width, btnStart.height);
                bg.bgColor = "#ffffff";

            let label = new Laya.Label("开始游戏");
                label.size(btnStart.width, 40);
                label.fontSize = "30";
                label.align = "center";
                label.centerY = 0;

            btnStart.addChildren(bg, label);
            this.btnStart = btnStart;

            this.addChild(btnStart);
        }

        onStart () {
            if(!USER_LOGIN_STATUS){
                location.href = GM.userLoginUrl;
                return;
            }
            Laya.loader.load(ASSETS.HALL.concat(ASSETS.DATA), Laya.Handler.create(this, this.onAssetsLoaded));
        }

        onAssetsLoaded () {
            Sail.store = new Sail.Store;
            Sail.loader = new Sail.Loader;

            Sail.director.runScene(new Scene.Hall);
        }
    }

    Sail.class(Start, "Scene.Start");
}